package day02.work01;

public class Bus extends Antomobile{
    private int num;

public Bus(){}
public Bus(String brand,String plateNumber,int num){
    super(brand,plateNumber);
    this.num=num;
}
public int getNum() {
    return num;
}
public void setNum(int num) {
    this.num = num;
}

public int getRent(int num){
    return num>16?600*num:400*num;
}
}
